#include <stdio.h>
#include <ctype.h>
#include "getopt.h"


static const char *progname;

enum opts {
  opt_version,
  opt_skip_dot,
  opt_skip_tilde,
  opt_skip_alias,
  opt_read_functions,
  opt_skip_functions,
  opt_show_dot,
  opt_show_tilde,
  opt_tty_only,
  opt_help,
  opt_test
};

static void print_usage(FILE *out){
  fprintf(out,"%s.\n",progname);
}

static void print_version()
{
  fprintf(stdout,"This is print_version function.\n");
}

static void print_fail(const char *name,const char *path_list)
{
  fprintf(stderr,"%s:no %s in (%s)\n",progname,name,path_list);
}

static char home[256];
static size_t homelen = 0;

int main(int argc,char *argv[])
{
  const char *path_list = getenv("PATH");
  int short_option, fail_count = 0;
  static int long_option;
  static int long_option1;
  struct option longopts[] = {
    {"help", 0, &long_option,opt_help},
    {"version",0,&long_option,opt_version},
    {"test",0,&long_option,opt_test}
  };
  return 0;
}
    
